package com.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blog.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Repository;

/**
 * Copyright (C), 2022
 * Author: 苏大大
 * Date: 2022-04-15 16:03
 * FileName: UserMapper
 * Description:
 */
@Repository //表示为持久层
@Mapper
public interface UserMapper extends BaseMapper<User> {

    //登录
    User Login(String account ,String password);

    //修改用户头像
    int updateAvatar(User user);

}
